package com.android.openapp.data;


import java.util.ArrayList;
import java.util.List;

import android.util.Log;

import com.socrata.data.View;
/**
 * 
 * @author Allieri Tommaso
 *sostituita da Place
 */
 @Deprecated
public abstract class Location {
	/**
	 * Per inserire un novo dataset basta aggiungere il nome a datasetM[]
	 * listmetadati
	 * [0] musei - iu2c-9p5j
	 * [1] ostelli - 3b7c-6kcq
	 */
	
	
	public static List<View> listmetadati=new ArrayList<View>();
	
	public static String datasetM[]=new String[] {"iu2c-9p5j","3b7c-6kcq"};
	public static List<Location> lista=new ArrayList<Location>();
	
	
	public Location() {
		
	}
	public static void initialize(){
		for(int i=0;i<datasetM.length;i++){
			listmetadati.add(new View());
			
		}
		Log.d("Initialize method","Completed");
	}
	
	public void addLocation(Location l){
		lista.add(l);
	}
	
	public Location getLocation(int index){
		return lista.get(index);
	}
	
	
	
	public abstract String getDenominazione();
	public abstract String getTipologia();
	
	
	@Override
	public abstract String toString();
}
